package com.qianchang.microfinance.bean;

import com.bigkoo.pickerview.model.IPickerViewData;

import java.util.List;

/**
 * 版 权: 深圳市迪蒙网络科技有限公司
 * 描 述:
 * 修 改 人: zhoulai
 * 修改时间: 2017/9/1 15:37
 */


public class ProductMortgageBean {


    /**
     * collateralType : [{"name":"房产","type":"0"}]
     * deadlineMonthList : [{"month":"1","monthRate":"0.01","unit":"1","weiyuejinRate":"1.0E-4"},{"month":"2","monthRate":"0.02","unit":"1","weiyuejinRate":"1.0E-4"}]
     * productInfo : {"applyMoneyEnd":"2000.00","applyMoneyStart":"1000.00","id":"00101503373921054101","productName":"抵押贷-1","productType":"2","productTypeDesc":"diya","repaymentTypes":"1","status":"0","updateTime":"2017-08-25 18:38:43"}
     * repaymentType : [{"name":"等额本息","type":"1"}]
     */

    private ProductInfoBean productInfo;
    private List<CollateralTypeBean> collateralType;
    private List<DeadlineMonthListBean> deadlineMonthList;
    private List<RepaymentTypeBean> repaymentType;

    public ProductInfoBean getProductInfo() {
        return productInfo;
    }

    public void setProductInfo(ProductInfoBean productInfo) {
        this.productInfo = productInfo;
    }

    public List<CollateralTypeBean> getCollateralType() {
        return collateralType;
    }

    public void setCollateralType(List<CollateralTypeBean> collateralType) {
        this.collateralType = collateralType;
    }

    public List<DeadlineMonthListBean> getDeadlineMonthList() {
        return deadlineMonthList;
    }

    public void setDeadlineMonthList(List<DeadlineMonthListBean> deadlineMonthList) {
        this.deadlineMonthList = deadlineMonthList;
    }

    public List<RepaymentTypeBean> getRepaymentType() {
        return repaymentType;
    }

    public void setRepaymentType(List<RepaymentTypeBean> repaymentType) {
        this.repaymentType = repaymentType;
    }

    public static class ProductInfoBean {
        /**
         * applyMoneyEnd : 2000.00
         * applyMoneyStart : 1000.00
         * id : 00101503373921054101
         * productName : 抵押贷-1
         * productType : 2
         * productTypeDesc : diya
         * repaymentTypes : 1
         * status : 0
         * updateTime : 2017-08-25 18:38:43
         */

        private double applyMoneyEnd;
        private double applyMoneyStart;
        private String id;
        private String productName;
        private String productType;
        private String productTypeDesc;
        private String repaymentTypes;
        private String status;
        private String updateTime;
        private double borrowFeeRate;

        public double getApplyMoneyEnd() {
            return applyMoneyEnd;
        }

        public void setApplyMoneyEnd(double applyMoneyEnd) {
            this.applyMoneyEnd = applyMoneyEnd;
        }

        public double getApplyMoneyStart() {
            return applyMoneyStart;
        }

        public void setApplyMoneyStart(double applyMoneyStart) {
            this.applyMoneyStart = applyMoneyStart;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getProductName() {
            return productName;
        }

        public void setProductName(String productName) {
            this.productName = productName;
        }

        public String getProductType() {
            return productType;
        }

        public void setProductType(String productType) {
            this.productType = productType;
        }

        public String getProductTypeDesc() {
            return productTypeDesc;
        }

        public void setProductTypeDesc(String productTypeDesc) {
            this.productTypeDesc = productTypeDesc;
        }

        public String getRepaymentTypes() {
            return repaymentTypes;
        }

        public void setRepaymentTypes(String repaymentTypes) {
            this.repaymentTypes = repaymentTypes;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public String getUpdateTime() {
            return updateTime;
        }

        public void setUpdateTime(String updateTime) {
            this.updateTime = updateTime;
        }

        public double getBorrowFeeRate() {
            return borrowFeeRate;
        }

        public void setBorrowFeeRate(double borrowFeeRate) {
            this.borrowFeeRate = borrowFeeRate;
        }
    }

    public static class CollateralTypeBean implements IPickerViewData {
        /**
         * name : 房产
         * type : 0
         */

        private String name;
        private String type;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        @Override
        public String getPickerViewText() {
            return name;
        }
    }

    public static class DeadlineMonthListBean implements IPickerViewData {
        /**
         * month : 1
         * monthRate : 0.01
         * unit : 1
         * weiyuejinRate : 1.0E-4
         */

        private String month;
        private double monthRate;
        private String unit;
        private String weiyuejinRate;

        public String getMonth() {
            return month;
        }

        public void setMonth(String month) {
            this.month = month;
        }

        public double getMonthRate() {
            return monthRate;
        }

        public void setMonthRate(double monthRate) {
            this.monthRate = monthRate;
        }

        public String getUnit() {
            return unit;
        }

        public void setUnit(String unit) {
            this.unit = unit;
        }

        public String getWeiyuejinRate() {
            return weiyuejinRate;
        }

        public void setWeiyuejinRate(String weiyuejinRate) {
            this.weiyuejinRate = weiyuejinRate;
        }

        @Override
        public String getPickerViewText() {
            return month+"个月";
        }
    }

    public static class RepaymentTypeBean implements IPickerViewData {
        /**
         * name : 等额本息
         * type : 1
         */

        private String name;
        private int type;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        @Override
        public String getPickerViewText() {
            return name;
        }
    }
}
